package com.sailfish.springbootdemo.pojo.db1;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class PcbaDeviceAgeHandled {

    private Integer pcbaDeviceId;
    private String pcbaDeviceNameCn;
    private String pcbaDeviceNameEn;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private Integer pcbaDeviceTypeId;
    private Integer sort;
    private Integer pcbaLineId;
    private Integer pcbaDeviceResourceId;
    private String assetNumber;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date productTime;
    private String productTimeStr;
    private String purpose;

    private Integer isInPcbaDevice;

    private Integer loopHandledStatus;
    private Integer ageHandledStatus;

    private List<String> loopCloseFilesList;
    private List<String> ageCloseFilesList;

    private String pcbaDeviceTypeName;

    // 是否在高端线体中设备年龄超6年 [数据库无对应字段]
    // 1：存在超过6年
    // 2：不存在超过6年
    // 3：存在6年但是已经处理过的
    private Integer isOverSixYearInHighLine;

    // 是否在线体中设备年龄到预警 [数据库无对应字段]
    // 1：达到预警
    // 2：未达到预警
    // 3：达到预警且已处理
    private Integer isHasAgeOverdueInLine;

    private List<Upkeep> upkeepList;
    private List<UpkeepAudit> upkeepAuditList;

    // 根据 productTime 与当前时间差计算得到的年数
    private Double age;
    private PcbaDeviceType pcbaDeviceType;
    private PcbaDeviceResource pcbaDeviceResource;
    private PcbaLine pcbaLine;

    private List<PcbaDeviceRelatedDeviceParam> pcbaDeviceRelatedDeviceParamList;
    private List<PcbaDeviceRelatedTechParam> pcbaDeviceRelatedTechParamList;
    private List<PcbaDeviceRelatedTechParamActual> pcbaDeviceRelatedTechParamActualList;

    private List<TechDeviceParamType> techDeviceParamTypeList;

    private List<DeviceAgeHistory> deviceAgeHistoryListOfHighLine;
    private List<DeviceAgeHistory> deviceAgeHistoryListOfCommonLine;

    public Integer getPcbaDeviceId() {
        return pcbaDeviceId;
    }

    public void setPcbaDeviceId(Integer pcbaDeviceId) {
        this.pcbaDeviceId = pcbaDeviceId;
    }

    public String getPcbaDeviceNameCn() {
        return pcbaDeviceNameCn;
    }

    public void setPcbaDeviceNameCn(String pcbaDeviceNameCn) {
        this.pcbaDeviceNameCn = pcbaDeviceNameCn;
    }

    public String getPcbaDeviceNameEn() {
        return pcbaDeviceNameEn;
    }

    public void setPcbaDeviceNameEn(String pcbaDeviceNameEn) {
        this.pcbaDeviceNameEn = pcbaDeviceNameEn;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getPcbaDeviceTypeId() {
        return pcbaDeviceTypeId;
    }

    public void setPcbaDeviceTypeId(Integer pcbaDeviceTypeId) {
        this.pcbaDeviceTypeId = pcbaDeviceTypeId;
    }

    public PcbaDeviceType getPcbaDeviceType() {
        return pcbaDeviceType;
    }

    public void setPcbaDeviceType(PcbaDeviceType pcbaDeviceType) {
        this.pcbaDeviceType = pcbaDeviceType;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<PcbaDeviceRelatedDeviceParam> getPcbaDeviceRelatedDeviceParamList() {
        return pcbaDeviceRelatedDeviceParamList;
    }

    public void setPcbaDeviceRelatedDeviceParamList(List<PcbaDeviceRelatedDeviceParam> pcbaDeviceRelatedDeviceParamList) {
        this.pcbaDeviceRelatedDeviceParamList = pcbaDeviceRelatedDeviceParamList;
    }

    public Integer getPcbaLineId() {
        return pcbaLineId;
    }

    public void setPcbaLineId(Integer pcbaLineId) {
        this.pcbaLineId = pcbaLineId;
    }

    public Integer getPcbaDeviceResourceId() {
        return pcbaDeviceResourceId;
    }

    public void setPcbaDeviceResourceId(Integer pcbaDeviceResourceId) {
        this.pcbaDeviceResourceId = pcbaDeviceResourceId;
    }

    public String getAssetNumber() {
        return assetNumber;
    }

    public void setAssetNumber(String assetNumber) {
        this.assetNumber = assetNumber;
    }

    public Date getProductTime() {
        return productTime;
    }

    public void setProductTime(Date productTime) {
        this.productTime = productTime;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public PcbaDeviceResource getPcbaDeviceResource() {
        return pcbaDeviceResource;
    }

    public void setPcbaDeviceResource(PcbaDeviceResource pcbaDeviceResource) {
        this.pcbaDeviceResource = pcbaDeviceResource;
    }

    public String getProductTimeStr() {
        return productTimeStr;
    }

    public void setProductTimeStr(String productTimeStr) {
        this.productTimeStr = productTimeStr;
    }

    public List<PcbaDeviceRelatedTechParam> getPcbaDeviceRelatedTechParamList() {
        return pcbaDeviceRelatedTechParamList;
    }

    public void setPcbaDeviceRelatedTechParamList(List<PcbaDeviceRelatedTechParam> pcbaDeviceRelatedTechParamList) {
        this.pcbaDeviceRelatedTechParamList = pcbaDeviceRelatedTechParamList;
    }

    public PcbaLine getPcbaLine() {
        return pcbaLine;
    }

    public void setPcbaLine(PcbaLine pcbaLine) {
        this.pcbaLine = pcbaLine;
    }

    public Double getAge() {
        return age;
    }

    public void setAge(Double age) {
        this.age = age;
    }

    public List<Upkeep> getUpkeepList() {
        return upkeepList;
    }

    public void setUpkeepList(List<Upkeep> upkeepList) {
        this.upkeepList = upkeepList;
    }

    public List<UpkeepAudit> getUpkeepAuditList() {
        return upkeepAuditList;
    }

    public void setUpkeepAuditList(List<UpkeepAudit> upkeepAuditList) {
        this.upkeepAuditList = upkeepAuditList;
    }

    public Integer getIsOverSixYearInHighLine() {
        return isOverSixYearInHighLine;
    }

    public void setIsOverSixYearInHighLine(Integer isOverSixYearInHighLine) {
        this.isOverSixYearInHighLine = isOverSixYearInHighLine;
    }

    public String getPcbaDeviceTypeName() {
        return pcbaDeviceTypeName;
    }

    public void setPcbaDeviceTypeName(String pcbaDeviceTypeName) {
        this.pcbaDeviceTypeName = pcbaDeviceTypeName;
    }

    public List<PcbaDeviceRelatedTechParamActual> getPcbaDeviceRelatedTechParamActualList() {
        return pcbaDeviceRelatedTechParamActualList;
    }

    public void setPcbaDeviceRelatedTechParamActualList(List<PcbaDeviceRelatedTechParamActual> pcbaDeviceRelatedTechParamActualList) {
        this.pcbaDeviceRelatedTechParamActualList = pcbaDeviceRelatedTechParamActualList;
    }

    public List<TechDeviceParamType> getTechDeviceParamTypeList() {
        return techDeviceParamTypeList;
    }

    public void setTechDeviceParamTypeList(List<TechDeviceParamType> techDeviceParamTypeList) {
        this.techDeviceParamTypeList = techDeviceParamTypeList;
    }

    public Integer getIsHasAgeOverdueInLine() {
        return isHasAgeOverdueInLine;
    }

    public void setIsHasAgeOverdueInLine(Integer isHasAgeOverdueInLine) {
        this.isHasAgeOverdueInLine = isHasAgeOverdueInLine;
    }

    public List<String> getLoopCloseFilesList() {
        return loopCloseFilesList;
    }

    public void setLoopCloseFilesList(List<String> loopCloseFilesList) {
        this.loopCloseFilesList = loopCloseFilesList;
    }

    public List<String> getAgeCloseFilesList() {
        return ageCloseFilesList;
    }

    public void setAgeCloseFilesList(List<String> ageCloseFilesList) {
        this.ageCloseFilesList = ageCloseFilesList;
    }

    public List<DeviceAgeHistory> getDeviceAgeHistoryListOfHighLine() {
        return deviceAgeHistoryListOfHighLine;
    }

    public void setDeviceAgeHistoryListOfHighLine(List<DeviceAgeHistory> deviceAgeHistoryListOfHighLine) {
        this.deviceAgeHistoryListOfHighLine = deviceAgeHistoryListOfHighLine;
    }

    public List<DeviceAgeHistory> getDeviceAgeHistoryListOfCommonLine() {
        return deviceAgeHistoryListOfCommonLine;
    }

    public void setDeviceAgeHistoryListOfCommonLine(List<DeviceAgeHistory> deviceAgeHistoryListOfCommonLine) {
        this.deviceAgeHistoryListOfCommonLine = deviceAgeHistoryListOfCommonLine;
    }

    public Integer getLoopHandledStatus() {
        return loopHandledStatus;
    }

    public void setLoopHandledStatus(Integer loopHandledStatus) {
        this.loopHandledStatus = loopHandledStatus;
    }

    public Integer getAgeHandledStatus() {
        return ageHandledStatus;
    }

    public void setAgeHandledStatus(Integer ageHandledStatus) {
        this.ageHandledStatus = ageHandledStatus;
    }

    public Integer getIsInPcbaDevice() {
        return isInPcbaDevice;
    }

    public void setIsInPcbaDevice(Integer isInPcbaDevice) {
        this.isInPcbaDevice = isInPcbaDevice;
    }
}
